<%@ page import="model.Raha"  %>  
<jsp:useBean id="rahad" scope="request" type="model.Raha[]" /> 
<html> 
<body bgcolor="white"> 
<a href='s'>servlet</a> | <a href='log.txt'>log.txt</a> <br> 
Rahade nimekiri:  
<br> 
<%  
      String id = "" ; 
      String nimetus = "" ; 
      String kurss = "" ; 
      out.println("<table bgcolor='#000000' border=0 cellpadding=0 cellspacing=0><tr><td><table width=100% border=0 cellpadding=2 cellspacing=1>"); 
      out.println("<tr bgcolor='#cccccc'><td><STRONG>ID&nbsp;</td><td><STRONG>Nimetus&nbsp;</td><td><STRONG>Kurss&nbsp;</td><td>......</td></tr><tr></tr>"); 
      try 
      { 
         for (int n = 0; n < rahad.length ; n++) 
              {     
                id = Integer.toString(rahad[n].getId()) ; 
                nimetus = rahad[n].getNimetus() ; 
                kurss = Integer.toString(rahad[n].getKurss()) ; 
                out.println("<TR BGCOLOR='#FFFFFF' ><TD  nowrap>"); 
                out.println("&nbsp;"+ id + "&nbsp;</TD><TD>"+ nimetus +  "&nbsp;</TD><TD>"+ kurss + "&nbsp;"); 
                out.println("</TD><TD align='top' nowrap><a HREF='s?id=" + id  + "'TARGET='_self'><b><u>muuda</u><b></a></TD></TR>");                
                } 
     } 
    catch(Exception ex) 
      {  
      out.println("Mingi viga" + ex.getMessage()); 
       } 
          
         out.println("</table></td></tr></table>");
         out.println("</form>"); 
  
 %> 
</body> 
</html>